package com.info.zhiduoduo.repository.entity.crowdsource;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 智零工充值记录表
 * @author tianyonghong
 * @create 2023/2/22
 */
@Data
@Accessors(chain = true)
@TableName("zdd_odd_job_recharge_record")
public class OddJobRechargeRecord extends Model<OddJobRechargeRecord> {

    private static final long serialVersionUID = 1L;

    /**
     * 智零工充值记录表id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("流水号")
    private String flowNo;

    @ApiModelProperty("零工充值主体ID")
    @TableField("merchant_id")
    private Integer merchantId;

    /**
     * 回单单号
     */
    @ApiModelProperty("回单单号")
    @TableField("receipt_no")
    private String receiptNo;

    /**
     * 电子回单地址
     */
    @ApiModelProperty("电子回单地址")
    @TableField("receipt_url")
    private String receiptUrl;

    /**
     * 充值金额
     */
    @ApiModelProperty("充值金额")
    @TableField("recharge_amount")
    private BigDecimal rechargeAmount;

    /**
     * 充值主体
     */
    @ApiModelProperty("充值主体")
    @TableField("recharge_party_id")
    private Integer rechargePartyId;

    /**
     * 充值类型（1:充值，2:红冲）
     */
    @ApiModelProperty("充值类型（1:充值，2:红冲）")
    @TableField("recharge_type")
    private Integer rechargeType;

    /**
     * 充值状态(申请中：0；完成：1)
     */
    @ApiModelProperty("充值状态(申请中：0；完成：1)")
    @TableField("state")
    private Integer state;

    @ApiModelProperty("备注")
    @TableField("remark")
    private String remark;

    @ApiModelProperty("创建时间")
    private Date createTime;

    @ApiModelProperty("创建人")
    private Integer createdBy;

    @ApiModelProperty("修改时间")
    private Date updateTime;

    @ApiModelProperty("修改人")
    private Integer updatedBy;

    @ApiModelProperty("是否删除 ")
    private Integer isDel;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}
